#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__

#include "cocos2d.h"

#include "SimpleAudioEngine.h"
#include "CDTime.h"
#include "UIConversation.h"


#include "UnityCode.h"
#include "ToolManager.h"

enum LogoPart
{
	enLogo_Start,
	enLogo_PressAnyKey,
};

class LogoScene : public cocos2d::CCLayer
{
public:
    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init();  

    // there's no 'id' in cpp, so we recommand to return the exactly class pointer
    static cocos2d::CCScene* scene();
    
    // a selector callback
    void menuCloseCallback(CCObject* pSender);

	virtual void update(float dt);

	void OnConversationOver(CCNode *sender, void* pValue);



	void updateMovement();

	virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);  
	virtual void ccTouchMoved(CCTouch *pTouch, CCEvent *pEvent);  
	virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);  
	virtual void ccTouchCancelled(CCTouch *pTouch, CCEvent *pEvent);  


    // implement the "static node()" method manually
    CREATE_FUNC(LogoScene);
private:
	int m_Framecount;
	CCDTime m_Delay;
	bool bShowConv;
	CCLabelTTF * m_PressAnyKeyLabel;
	CCSpriteBatchNode *batchNode;
	
	CCSprite * m_LogoSprite;
	CCSize winSize ;
	bool m_bOpRight;
	int m_LogoPart;
	

};

#endif  // __HELLOWORLD_SCENE_H__